<%@ page contentType="text/html;charset=utf-8" %>
<%@page import="javabean.SearchResult" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>站内搜索－国内优秀的JAVA(JSP)网站管理系统|开源java cms jsp ajax - powered by 51javacms</title>
<meta content="51JAVACMS,开源网站内容管理系统,java cms jsp ajax,站内搜索" name="keywords" />
<meta content="站内搜索,提供开源java cms jsp ajax系统下载,互联网应用,网站建设" name="description" />
<link rel="shortcut icon" href="http://www.51javacms.com/images/logo.ico"/>
<link rel="stylesheet" rev="stylesheet" href="<%=request.getContextPath()%>/css/plugin/search.css" type="text/css" media="all" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/system.js" ></script>
</head>
<body>
<%SearchResult[] rs = (SearchResult[])request.getAttribute("results");
String querrys = (String)request.getAttribute("querrys");
int sumPage = request.getAttribute("sumPage")==null?0:(Integer)request.getAttribute("sumPage");%>
<div id="head">
	<div id="logo">
		<h1><a href="http://www.51javacms.com"><img alt="51JavaCms!" src="<%=request.getContextPath()%>/img/logo.png">MTA CMS</a></h1>
	</div>
</div>
<form action="<%=request.getContextPath()%>/PluginCtrl" method="post" name="page_form">
<input type="hidden" name="page" value="SearchPage"></input>
  	<div id="dedenews">
		<div id="newtitle" style="float:left;">搜索结果：</div>
		<div id="news" style="float:left;">
			<div class="homeSearch">
				<input type="text" class="input1" name="search_txt" value="<%=querrys %>"/>
				<input type="submit" value="搜索" class="input2"/>
			</div>
		</div>
	</div>
<!-- 主体开始 -->
	<div id="main">
     <%if(rs!=null&&rs.length>0){
       	for(int i=0;i<rs.length;i++){%>	
	<div style="background-color:#ddf;width:880px;margin-top:6px;">
	<p style="text-align:center;padding-top:6px;"><a href="" target="_blank"><%=rs[i].getTitle()%></a></p>
	<p><%=rs[i].getContent()%></p>
	<p style="margin-top:6px;padding-bottom:6px;" align="center">
	<font color="blue">网页链接地址url：</font><a href="" target="_blank"><%=rs[i].getUrl() %></a></p>
	</div> 
 <%} if(sumPage>1){%>
 	<div style="background-color:#ddf;width:880px;margin-top:6px;height:100px;">
	<%@ include file="../page.jsp"%>
	</div>
 <%}}else{%>
 	<div style="background-color:#ddf;width:880px;margin-top:6px;height:100px;">
	<p style="text-align:center;padding-top:6px;">没有符合条件的搜索结果。</p>
	</div><%}%>  
</div>
<!-- 主体结束 -->
</form>
<%@ include file="../footer.jsp"%>
</body>
</html>